<?php

namespace App\Http\Controllers\Admin;

use App\Models\Category;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class PagesController extends Controller
{
    //
    public function index()
    {
        return view('welcome');
    }

    public function about()
    {
        $category = Category::all();
        p($category);
        $assign = [
            'category' => $category,
        ];
        return view('admin.pages.about', $assign);
    }
}
